<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   xmlns:pe="http://primefaces.org/ui"
   template="/WEB-INF/templates/business/buyer/template.xhtml">
   
   	<f:metadata>
	   	<f:viewParam name="bulletinId" value="#{bulletinHome3.id}"></f:viewParam>
	   	<f:viewParam name="contractRecordId" value="#{contractRecordHome.id}"></f:viewParam>
	   	<f:event listener="#{bulletinHome3.initConversation()}" type="preRenderView"></f:event>
	   
   	</f:metadata>
   	<ui:define name="buyer_head">
   		<style type="text/css">
   			.removeButton {
   				float: right;
   				margin-right: 20px;
   			}
   			.limlitOfTime{
   				 position: relative;
    			 top: -9px;
   			}
   			
   		</style>
   	</ui:define>
   	<ui:define name="buyer_content">
   
		<h:form id="editForm"  >         
			<p:panel id="panel" header="备案登记" style="margin-bottom:10px;min-height:550px">
		        <p:messages id="messages" closable="true">
		       		<p:autoUpdate />
		       	</p:messages>
		        <h:panelGrid columns="2" cellpadding="5" style="margin-bottom:20px;" columnClasses="column1,column2">				
					<p:outputLabel for="bulletinProjectName" value="采购项目名称" />				
					<h:outputText  id="bulletinProjectName" value="#{bulletinHome3.instance.projectName}"  />
					<p:outputLabel for="bulletinBuyerName" value="采购单位名称" />				
					<h:outputText  id="bulletinBuyerName" value="#{bulletinHome3.instance.buyer.cnname}"  />
					<p:outputLabel for="bulletinSupplierName" value="中选中介名称" />				
					<h:outputText  id="bulletinSupplierName" value="#{bulletinHome3.instance.successTrade.supplier.cnname}"  />
					<p:outputLabel for="bulletinLimitOfTime" value="合同完成时限" />
					<p:inputText 	id="bulletinLimitOfTime" value="#{contractRecordHome.instance.limitOfTime}" required="true" styleClass="input-large"></p:inputText>
					<p:outputLabel for="bulletinAmountOfInvestment" value="项目投资金额" />
					<p:inputText id="bulletinAmountOfInvestment" value="#{contractRecordHome.instance.amountOfInvestment}" required="true" styleClass="input-large"></p:inputText>
					<p:outputLabel for="bulletinProjectOverview" value="项目概述" />
					<p:inputTextarea id="bulletinProjectOverview" value="#{contractRecordHome.instance.projectOverview}" rows="6" cols="50" required="true" styleClass="input-large" />
					
					
				</h:panelGrid>
				<p:commandButton id="save" widgetVar="save" action="#{contractRecordHome.saveAndFlush()}"  value="保存"  ajax="false" />		    
					<ui:remove>
						<p:commandButton action="#{contractRecordHome.delete()}" value="删除">
							<p:confirm header="请确认" message="您确认删除记录吗?" icon="ui-icon-alert" />
						</p:commandButton>
					</ui:remove>
					<p:commandButton action="#{contractRecordHome.cancel()}" value="取消" immediate="true"></p:commandButton>	
				
			</p:panel>
		</h:form>
   	</ui:define>
</ui:composition>
